package com.yz.zuul.FeignClients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * @author 钰杰
 * @className FeignClients
 * @date 2019/12/1110:24
 */
@FeignClient("migration-forlogin")
public interface LoginFeignClient {
    @GetMapping("/auth/feign_token/{token}")
    public Map getUserRolesByToken(@PathVariable String token);
}
